﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DAL;
using System.Data.SqlClient;

namespace Bll
{
   public class ClientUser
    {
       ClientUserDAL cd = new ClientUserDAL();
       SpredInfoDAL sd = new SpredInfoDAL();
       public DataTable getUserDataSource()
       {
        return   cd.getUserDataSource();


       }

       public bool isOkUser(string username, string paw)
       {
           return cd.isOkUser(username, paw);                
       }
       public DataSet writerxmlinfo(string acno)
       {
           return cd.writerxmlinfo(acno);
       }

       public DataSet getUserGroupInfo()
       {
           return cd.getUserGroupInfo();
       
       }
       public DataSet getUserInfoByGroup(string groupid)
       {

           return cd.getUserInfoByGroup(groupid);
       }
       public int AddUser(string acno, string aeno, string cname, string ename, string password, double balance)
       {
          return cd.AddUser(acno, aeno, cname, ename, password, balance);
       
       }

       public DataSet getCustomer()
       {
           return sd.getCustomer();
       
       }

       public DataSet getGroupInfoByID()
       {
           return cd.getGroupInfoByID();
       
       }

       public DataSet getDataSetGoupChild()
       {
           return cd.getDataSetGoupChild();
       }
    }
}
